package billeterie;
/**
 * 
 * @author samir
 */
public class Train {

    private int id_train;
    private int places_dispo;
    private String type_train;

    public Train(int id_train, int places_dispo, String type_train) {
        this.id_train = id_train;
        this.places_dispo = places_dispo;
        this.type_train = type_train;
    }

    public int getId_train() {
        return id_train;
    }

    public void setId_train(int id_train) {
        this.id_train = id_train;
    }

    public int getPlaces_dispo() {
        return places_dispo;
    }

    public void setPlaces_dispo(int places_dispo) {
        this.places_dispo = places_dispo;
    }

    public String getType_train() {
        return type_train;
    }

    public void setType_train(String type_train) {
        this.type_train = type_train;
    }

    @Override
    public String toString() {
        return "Train{" + "id_train=" + id_train + ", places_dispo=" + places_dispo + ", type_train=" + type_train + '}';
    }
}
